<?php /* Smarty version Smarty3-SVN$Rev: 3286 $, created on 2011-02-18 23:18:50
         compiled from "/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/user_list.html" */ ?>
<?php /*%%SmartyHeaderCode:2524704034d5e8dda6c40c4-15873690%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8e37aca90e81457ae1dee9e6bcd9cc8efe7a9313' => 
    array (
      0 => '/home3/xuanyano/public_html/geek-zoo.com/site/admin/Templates/user_list.html',
      1 => 1288685648,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2524704034d5e8dda6c40c4-15873690',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("lib/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<!--main-->
<div id="main">
  <?php $_template = new Smarty_Internal_Template("lib/history.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
	<div class="breadcrumb"><a href="?url=index">首页</a> <img src="images/i.png" class="ico"> <a href="javascript://">内容列表</a>  </div>
	<div class="m10"><input name="" type="button" class="add" onclick=window.location.href='?url=administrator/create'></div>
	<div class="container m10">
		<form action="" method="post" accept-charset="utf-8">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<thead>
	<tr>
		<th><input type="checkbox" class="checkAll" /></th>
		<th>用户名</th>
		<th>别名</th>
		<th>权限</th>
		<th>操作</th>
	</tr>
	</thead>
	<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
	<tr>
		<td><input type="checkbox" name="check[]" value="<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
"></td>
		<td><?php echo $_smarty_tpl->tpl_vars['val']->value['name'];?>
<?php if ($_smarty_tpl->tpl_vars['val']->value['id']==1){?>(创始人)<?php }?></td>
		<td><?php echo $_smarty_tpl->tpl_vars['val']->value['nickname'];?>
</td>
		<td><?php if ($_smarty_tpl->tpl_vars['val']->value['id']==1){?>所有权限<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['val']->value['permission'];?>
<?php }?></td>
		<td><a href="?url=administrator/update&id=<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
"><img src="images/i.png" class="edit" title="编辑"></a> <a href="?url=administrator/delete&id=<?php echo $_smarty_tpl->tpl_vars['val']->value['id'];?>
" class="delete"><img src="images/i.png" class="del" title="删除"></a></td>
	</tr>
	<?php }} ?>
</table>
</form>
	</div>
	<div class="m10">
				<?php if (isset($_smarty_tpl->getVariable('pager',null,true,false)->value)){?>
					<div class="pages fr">
						<?php if ($_smarty_tpl->getVariable('pager')->value->getPage()>1){?>
						<a href="<?php echo $_smarty_tpl->getVariable('pager')->value->link($_smarty_tpl->getVariable('pager')->value->prev());?>
"><img src="images/i.png" class="prev"></a>
						<?php }?>
						<?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('pager')->value->getPagesArray(10); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
							<?php if ($_smarty_tpl->getVariable('pager')->value->getPage()==$_smarty_tpl->tpl_vars['val']->value){?>
								<?php echo $_smarty_tpl->tpl_vars['val']->value;?>

							<?php }else{ ?>
								<a href="<?php echo $_smarty_tpl->getVariable('pager')->value->link($_smarty_tpl->tpl_vars['val']->value);?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value;?>
</a>
							<?php }?>
						<?php }} ?>
						<?php if (!in_array($_smarty_tpl->getVariable('pager')->value->getPages(),$_smarty_tpl->getVariable('pager')->value->getPagesArray(10))){?>
						 <a href="javascript://">&middot;</a>
						 <a href="javascript://">&middot;</a>
						 <a href="javascript://">&middot;</a>
						<a href="<?php echo $_smarty_tpl->getVariable('pager')->value->link($_smarty_tpl->getVariable('pager')->value->end());?>
"><?php echo $_smarty_tpl->getVariable('pager')->value->end();?>
</a>
						<?php }?>
						<?php if ($_smarty_tpl->getVariable('pager')->value->getPage()<$_smarty_tpl->getVariable('pager')->value->getPages()){?>
							<a href="<?php echo $_smarty_tpl->getVariable('pager')->value->link($_smarty_tpl->getVariable('pager')->value->next());?>
"><img src="images/i.png" class="next"></a>
            <?php }?>
					</div>
				<?php }?>
				<select name="oper">
				  <option value="0">选择操作</option>
				  <option value="?url=administrator/delete" >删除所有</option>
				</select>
		</div>
</div>
<script type="text/javascript" charset="utf-8">
$('.checkAll').click(function(){
  if (this.checked) {
    $('input[name=check[]]').checkbox('off');
  } else {
    $('input[name=check[]]').checkbox('on');
  }
});
$('select[name=oper]').change(function(){
	var url = $(this).val(); 
	if (url!=0) {
		if ($('input:checked[name=check[]]').size() < 1) {
			return false;
		}
		if (confirm('确定删除?此操作不能回退')) {
			$('form').attr('action', url).submit();
		};;
	};
});
</script>
<!--/main-->
<?php $_template = new Smarty_Internal_Template("lib/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>